import { createApp } from 'vue'
import App from './App.vue'
import router from './router/index'
import Antd from 'ant-design-vue'
import { setupStore } from '@/store'
import 'ant-design-vue/dist/antd.css'
import './assets/iconfont.js'
import  './style/index.scss'

import { setupDirectives, setupComponents } from './plugins'

console.log(import.meta.env, 'process')

const app = createApp(App);

//  注册全局自定义指令, 如v-permission权限指令
setupDirectives(app)
// 注册全局组件
setupComponents(app)

// 挂载vuex管理
setupStore(app)

app.use(router).use(Antd).mount('#app')